package com.mf.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 卖出的历史记录
 * </p>
 *
 * @author mf
 * @since 2024-05-20
 */
@Getter
@Setter
@TableName("t_selling_history")
public class SellingHistory {

@TableId(value = "id", type = IdType.AUTO)
private Integer id;

/**
 * 用户id
 */
@Schema(description = "用户id")
private Integer userId;

/**
 * 买入金额
 */
@Schema(description = "买入金额")
private BigDecimal buyMoney;

/**
 * 买入日期
 */
@Schema(description = "买入日期")
private String buyDate;

/**
 * 买入金额
 */
@Schema(description = "卖出金额")
private BigDecimal saleMoney;

/**
 * 卖出日期
 */
@Schema(description = "卖出日期")
private String saleDate;

/**
 * 整体手续费
 */
@Schema(description = "整体手续费")
private BigDecimal cost;

/**
 * 持有天数
 */
@Schema(description = "持有天数")
private Integer holdingDays;

/**
 * 股票代码
 */
@Schema(description = "股票代码")
private String dm;

/**
 * 0:未盈利，1:盈利
 */
@Schema(description = "0:未盈利，1:盈利")
private Integer status;

private LocalDateTime createdTime;

private LocalDateTime updateTime;
        }